#ifndef XSHEETWIDGET_H_INCLUDED
#define XSHEETWIDGET_H_INCLUDED
#include <gtkmm.h>
#include "smil/BasicTiming.h"
class xSheetWidget: public Gtk::Layout
{
    public:
    xSheetWidget();
    virtual ~xSheetWidget();
    void load(Glib::RefPtr<smil::BasicTiming>);
    void refresh();

    protected:
    bool on_motion_notify_event(GdkEventMotion* event);
    bool on_key_press_event(GdkEventKey* event);
    bool on_expose_event(GdkEventExpose* event);
    void blit(GdkRectangle area);
    Glib::RefPtr<Gdk::Pixmap> mySurface;
    Cairo::RefPtr<Cairo::Context> myContext;
    Glib::RefPtr<smil::BasicTiming> focus;
};

#endif // XSHEETWIDGET_H_INCLUDED
